package cn.imvc.app.models;

import java.util.Collection;
import java.util.LinkedHashMap;

import org.springframework.data.domain.Page;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.util.matcher.RequestMatcher;

import cn.imvc.app.entities.GoodsAttrValue;
import cn.imvc.data.domain.ViewRequest;

public interface GoodsAttrValueModel {
	LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> getRequestMap();
	
	Page<GoodsAttrValue> find(ViewRequest viewRequest);
	
	GoodsAttrValue get(int id);

	GoodsAttrValue save(GoodsAttrValue goodsAttrValue);
	
	GoodsAttrValue update(GoodsAttrValue goodsAttrValue);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	boolean isHas(GoodsAttrValue goodsAttrValue);
}
